//
//  MusicResults.m
//  PageViewControlerDemo
//
//  Created by lgq on 2017/3/13.
//  Copyright © 2017年 liukun. All rights reserved.
//

#import "MusicResults.h"

@implementation MusicResults

- (instancetype)init:(NSDictionary*)dicts{
    self = [super init];
    if (self) {
        self.musics = [NSMutableArray array];
        for (NSDictionary *dict in dicts) {
            NSString *imageURL = [dict objectForKey:@"image"];
            NSString *title = [dict objectForKey:@"title"];
            CommonDataModel *movie = [[CommonDataModel alloc] init:imageURL Title:title];
            [self.musics addObject:movie];
        }
    }
    return self;
}

@end
